
package com.jic.market.response.rest.lottery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 抽奖活动奖品关联表
 * @author :
 * @email :
 * @since : 2020-03-03 03:05:46
 * @version : v1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("抽奖动作返回信息")
public class LotteryDrawRestResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("抽奖活动id")
    private Long themeId;

    @ApiModelProperty("中奖结果code 1 中奖 2 未中奖 3 谢谢参与（限有谢谢参与奖项的活动）4 活动未开始 5 活动已结束 6 今日机会已用完（限每日抽奖次数限制的抽奖） 7 抽奖机会已用完 8 积分不足 9 无订单（限订单抽奖）10 活动不存在 ")
    private Integer drawResultCode;

    @ApiModelProperty("中奖结果提示（中奖啦 或者 很遗憾未中奖）")
    private String drawResultDesc;

    @ApiModelProperty("领奖记录id")
    private Long receiveRecordId;

    @ApiModelProperty("奖项详细信息")
    private AwardsResponseVO awardsVO;

    private boolean isFreeDraw;

    public void setIsCostFreeDraw(boolean isCostFreeDraw) {
        this.isFreeDraw = isCostFreeDraw;
    }
}